package com.zk.spring5.aop_annotation;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author ZK
 * @Description
 * @time 2021/5/4 22:23
 * @note 增强的类
 */
@Component
@Aspect
@Order(2)
public class UserProxy2 {
    // 前置通知
    @Before(value = "execution(* com.zk.spring5.aop_annotation.User.add(..))")
    public void before() {
        System.out.println("before....(UserProxy2 at order 2)");
    }

}
